<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">	
    <link href="/public/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
	//全局变量
	var GV = {
	    ROOT: "/",
	    WEB_ROOT: "/",
	    JS_ROOT: "public/js/",
	    APP:'<?php echo (MODULE_NAME); ?>'/*当前应用名*/
	};
	</script>
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
    <script>
    	$(function(){
    		$("[data-toggle='tooltip']").tooltip();
    	});
    </script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
        input[type=text]{
            height: 18px!important;
        }
        select{
            width: 160px;
        }
	</style><?php endif; ?>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>商品列表</a></li>
			<li><a href="<?php echo U('Goods/goods_edit');?>">商品添加</a></li>
		</ul>
		<form class="well form-search" method="post" action="<?php echo U('Goods/goods_list');?>" style='line-height: 46px;'>
			商品名称： 
			<input type="text" name="title" style="width: 150px;" value="<?php echo I('request.title');?>" placeholder="请输入商品名称">
			额度：<input class="js-date" type="text" name="starts" style="width: 150px;" value="<?php echo I('request.starts');?>" placeholder="最小额度">
			<input class="js-date" type="text" name="ends" style="width: 150px;" value="<?php echo I('request.ends');?>" placeholder="最大额度">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="<?php echo U('Goods/goods_list');?>">清空</a>

		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered" id='tab_check'>
				<thead>
					<tr>
						<th style='min-width: 50px;' align="center">修改时间</th>
						<th>商品名称</th>
						<th>额度</th>
						<th>服务费</th>
						<th>保证金</th>
						<th>借款最小周期</th>
						<th>借款最大周期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
						<td><?php echo ((isset($vo["modtime"]) && ($vo["modtime"] !== ""))?($vo["modtime"]):''); ?></td>
						<td><?php echo ((isset($vo["title"]) && ($vo["title"] !== ""))?($vo["title"]):''); ?></td>
						<td><?php echo ((isset($vo["amount"]) && ($vo["amount"] !== ""))?($vo["amount"]):''); ?></td>
						<td><?php echo ($vo['interest']+$vo['examine']+$vo['consulting']); ?></td>
						<td><?php echo ((isset($vo["bond_amount"]) && ($vo["bond_amount"] !== ""))?($vo["bond_amount"]):''); ?></td>
						<td><?php echo ((isset($vo["startime"]) && ($vo["startime"] !== ""))?($vo["startime"]):''); ?></td>
						<td><?php echo ((isset($vo["endtime"]) && ($vo["endtime"] !== ""))?($vo["endtime"]):''); ?></td>
						<td align="center">
						<a href="<?php echo U('Goods/goods_edit',array('id'=>$vo['id'],'type'=>0));?>">编辑</a>
						</td>
					</tr><?php endforeach; endif; ?>
				</tbody>
			</table>
			<div class="pagination"><?php echo ($page); ?></div>
		</form>
	</div>
	<script src="/public/js/common.js"></script>

</body>
</html>